package biz.ezcom.design.pattern.commond;

public class Client {
	public static void main(String[] args) {
		//创建烧烤者
		ReceiverBarbecuer barbecuer = new ReceiverBarbecuer();
		//创建烤肉串菜单（命令）
		Commond bakeMutton1 = new CommondBakeMutton(barbecuer); 
		Commond bakeMutton2 = new CommondBakeMutton(barbecuer);
		//创建烤鸡翅菜单（命令）
		Commond chickenWing1 = new CommondBakeChickenWing(barbecuer);
		//创建服务员
		InvokerWaiter waiter = new InvokerWaiter();
		
		//正常营业
		waiter.addCommond(bakeMutton1);
		waiter.addCommond(bakeMutton2);
		waiter.addCommond(chickenWing1);
		
		waiter.submit();
		
	}
}
